package com.sansan.qiangji.service.impl.device;

import com.sansan.qiangji.entity.device.Stacker;
import com.sansan.qiangji.entity.warehouse.StackerTask;
import com.sansan.qiangji.mapper.device.StackerMapper;
import com.sansan.qiangji.service.inter.device.StackerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class StackerServiceImpl implements StackerService {
    private StackerMapper stackerMapper;

    @Resource
    public void setStackerMapper(StackerMapper stackerMapper){
        this.stackerMapper = stackerMapper;
    }

    @Override
    public List<Stacker> findAllStacker() {
        return stackerMapper.findAllStacker();
    }

    @Override
    public int updateStacker(Stacker stacker) {
        return stackerMapper.updateStacker(stacker);
    }

    @Override
    public int updateStackers(List<Stacker> stackers) {
        return stackerMapper.updateStackers(stackers);
    }

    @Override
    public Boolean checkPushStatus(StackerTask stackerTask) {
        return null;
    }

    @Override
    public Boolean getProduct(StackerTask stackerTask) {
        return null;
    }

    @Override
    public Boolean downProduct(StackerTask stackerTask) {
        return null;
    }

    @Override
    public int addStacker(Stacker stacker) {
        return stackerMapper.addStacker(stacker);
    }

    @Override
    public List<Stacker> findByStackerName(String stackerName) {
        return stackerMapper.findByStackerName(stackerName);
    }

    @Override
    public Stacker findByStackerId(Integer stackerId) {
        return stackerMapper.findByStackerId(stackerId);
    }

    @Override
    public int deleteById(Integer stackerId) {
        return stackerMapper.deleteById(stackerId);
    }
}
